Subscribe Us

Responsive Advertisement

Advertisement

URI Online Judge | 1116 Dividing X by Y solution in c

 

uri 1116 solution in c

by ujjal roy



#include<stdio.h>

main()

{

    int x,y,n;

    scanf("%d",&n);

    while(n--)

    {

         scanf("%d%d",&x,&y);

         if(y==0) printf("divisao impossivel\n");

         else

         {

             double r=(double)x/y;

             printf("%.1lf\n",r);

         }

    }



    return 0;

}


Post a Comment

0 Comments